﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Messages.aspx.cs" Inherits="LiveCPEProject.messages.Messages" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="PanelPostComment" runat="server">
        <asp:Label ID="WelcomingMessage" runat="server" CssClass="welcomingMessage" Text="<%$ Resources:LocalizedText, Message_Welcome %>"></asp:Label>
        <br />
        <asp:UpdatePanel ID="FirstContentPanel" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <div id="friendListContainer" class="friendListContainer">
                    <asp:Repeater ID="RepeaterFriends" runat="server">
                        <ItemTemplate>
                            <asp:LinkButton ID="linkFriendForList" runat="server" OnClick="SelectFriendForMessage_Click"
                                CommandArgument='<%# Eval("UserName") %>'>
                                <div id="friendForList" class="friendForList">
                                    <asp:Label ID="UserName" runat="server" Text='<%# "("+Eval("UserName")+")" %>' CssClass="userNameMini" />
                                    <asp:Image ID="UserImage" runat="server" ImageUrl='<%# "displayImg?userName="+Eval("UserName")%>'
                                        CssClass="userImageList" Width="33" Height="45" />
                                </div>
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="Deco0" class="empty">
        </div>
        <asp:TextBox ID="TextBoxSender" runat="server" Visible="false"></asp:TextBox><asp:TextBox
            ID="TextBoxMessage" runat="server" OnTextChanged="TextBoxMessage_Changed" Width="400px">
        </asp:TextBox><asp:Label ID="SendMessageLabel" runat="server" Text="<%$ Resources:LocalizedText, Message_Send %>"
            CssClass="sendLabel"></asp:Label><asp:Button ID="ButtonMessage" runat="server" OnClick="ButtonMessage_Click"
                CommandArgument="" CssClass="statusButton" />
    </asp:Panel>
    <asp:DataList ID="DataList1" runat="server" CssClass="messageList">
        <ItemTemplate>
            <asp:Label ID="Deco1" runat="server" Text='(' CssClass="userName" />
            <asp:LinkButton ID="MessageAuthorLabel" runat="server" Text='<%# Eval("SenderName") %>'
                OnClick="Redirect_Click" CommandArgument='<%# Eval("SenderName") %>' CssClass="userName" />
            <asp:Label ID="Deco2" runat="server" Text=')' CssClass="userName" />
            <asp:Label ID="MessageContentLabel" runat="server" Text='<%# Eval("MessageContent") %>'
                CssClass="messageContent" />
            <asp:LinkButton ID="LinkUserImage" runat="server" OnClick="Redirect_Click" CommandArgument='<%# Eval("SenderName") %>'
                CssClass="userImageLink">
                <asp:Image ID="UserImage" runat="server" ImageUrl='<%# "displayImg?userName="+Eval("SenderName")%>'
                    CssClass="userImage" Width="66" Height="80" />
            </asp:LinkButton><br />
            <p class="publicationDate">
                <asp:Label ID="PublicationDateDesc1" runat="server" Text="<%$ Resources:LocalizedText, Wall_PublicationAgeBefore %>" />
                <asp:Label ID="PublicationDateLabel" runat="server" Text='<%# Eval("PublicationAge") %>' />
                <asp:Label ID="PublicationDateDesc2" runat="server" Text="" />
            </p>
            <asp:Label ID="MessageID" runat="server" Text='<%# Eval("MessageID") %>' Visible="false" />
            <div id="Deco3" class="empty">
            </div>
        </ItemTemplate>
    </asp:DataList>
</asp:Content>
